package com.my.demo;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringDemo {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("com.my.demo");
		Object student = applicationContext.getBean("student");
		System.out.println(student);
	}
}
